﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace PHMEE.Admin
{
    /// <summary>
    /// 主动触发数采器的操作命令
    /// </summary>
    public interface IDtSendTopicService : IApplicationService
    {
        /// <summary>
        /// 发送启动数采器命令
        /// </summary>
        /// <param name="topic"></param>
        /// <param name="payload"></param>
        /// <returns></returns>
        Task<bool> SendIssueRestartAsync(string collectorCode);
        /// <summary>
        /// 自诊断
        /// </summary>
        /// <param name="collectorCode"></param>
        /// <returns></returns>
        Task<List<string>> CheckDataAsync(List<string> collectorCodes);
        /// <summary>
        /// 主动下发参数
        /// </summary>
        /// <param name="collectorCode"></param>
        /// <returns></returns>
        Task<bool> SendIssueParaAsync(string collectorCode);
    }
}
